Skip to content

Conversation

merolish
Copy link
Contributor

@merolish merolish commented Oct 9, 2025

Summary

Migrate to hermes client to get pyth prices.

Rationale

price-service-client and associated endpoints are deprecated.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@merolish merolish requested a review from a team as a code owner October 9, 2025 22:21
Copy link

vercel bot commented Oct 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
api-reference Ready Ready Preview Comment Oct 14, 2025 1:39pm
component-library Ready Ready Preview Comment Oct 14, 2025 1:39pm
developer-hub Ready Ready Preview Comment Oct 14, 2025 1:39pm
4 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
entropy-explorer Skipped Skipped Oct 14, 2025 1:39pm
insights Skipped Skipped Oct 14, 2025 1:39pm
proposals Skipped Skipped Oct 14, 2025 1:39pm
staking Skipped Skipped Oct 14, 2025 1:39pm

// Fetch the latest price feed update VAAs from the price service
const latestVaas = await this.getLatestVaas(priceIds);
return latestVaas.map((vaa) => Buffer.from(vaa, "base64"));
const latestVaas: PriceUpdate = await this.getLatestPriceUpdates(priceIds, { encoding: "base64", parsed: false });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's call this update data instead of Vaas (they are not vaas anymore)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks.

Copy link
Collaborator

@ali-behjati ali-behjati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'll approve once you fix the naming issue. And btw, please fix the CI (if your code is fine, sometimes just rerunning it fixes it)

@merolish merolish merged commit 4b5adc2 into main Oct 14, 2025
10 checks passed
@merolish merolish deleted the mike/sui-hermes-client branch October 14, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants